package com.sh.cloudrender.infrastructure.dal.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 引擎信息表(engine)实体类
 *
 * @author yunteng
 * @since 2024-06-19 16:46:32
 * @description 由 yunteng 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("engine")
public class EngineDO extends Model<EngineDO> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId
	private Long id;
    /**
     * createTime
     */
    private Date createTime;
    /**
     * updateTime
     */
    @TableField(update = "now()")
	private Date updateTime;

    /**
     * startTime
     */
    private Date startTime;
    /**
     * 引擎id
     */
    private String engineId;
    /**
     * name
     */
    private String name;
    /**
     * image
     */
    private String image;
    /**
     * cpus
     */
    private Integer cpus;
    /**
     * 内存规格，单位是GB
     */
    private Integer memory;
    /**
     * enableGpu
     */
    private Integer enableGpu;
    /**
     * 0: pending;1: running; 2: release
     */
    private Integer state;

    private String endpoint;

}